const mock = require('mockjs')
const random = mock.Random
const getStateList = require('../utils/getStatList')

module.exports = [
  {
    url: '/api/stat/:questionId',
    method: 'get',
    response() {
      return {
        error: 0,
        data: {
          total: 100, // 分页
          list: getStateList()
        }
      }
    }
  }
]